//---------------------------------------------------------------------------
#ifndef DPCnsCxH
#define DPCnsCxH

//---------------------------------------------------------------------------
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include "DialPad.h"
#include "PHDS.h"
#include <ExtCtrls.hpp>
#include <Buttons.hpp>
#include "PHEdit.h"
#include "PHLabel.h"
#include "PHGridEd.h"
#include <Grids.hpp>
#include "stdm.h"
#include "DIALPAD.h"

//---------------------------------------------------------------------------
class TDPCnsCx1 : public TDiPad
{
__published:  // IDE-managed Components
  TBitBtn*  BitBtn1;
  TBitBtn*  BitBtn3;
  PHLabel*  PHLabel1;
  PHEdit*  PHEdit1;
  PHLabel*  PHLabel2;
  PHEdit*  PHEdit2;
  PHGridEdit*  PHGridEdit1;
  PHDataSource*  DSCaixa;
  TBitBtn*  BitBtn2;
 TPanel *Panel2;
 PHLabel *PHLabel3;
 TStaticText *StaticText1;
 PHLabel *PHLabel4;
 TStaticText *StaticText2;
  void __fastcall BitBtn3Click( TObject* Sender );
  void __fastcall DSCaixaAfterOpen( TObject* Sender );
  void __fastcall BitBtn1Click( TObject* Sender );
  void __fastcall PHEdit1Change( TObject* Sender );
  void __fastcall PHEdit2Change( TObject* Sender );
  void __fastcall PHGridEdit1DrawGridCell( int Row, int Col, TColor&  CorTexto, TColor&  CorFundo,
                                           bool&  AplicarCoresSelecao, PHDataSource*  PHDS,
                                           AnsiString&  Conteudo );
  void __fastcall FormShow( TObject* Sender );
  void __fastcall PHGridEdit1DblClick( TObject* Sender );
  void __fastcall FormClose( TObject* Sender, TCloseAction& Action );
  void __fastcall PHGridEdit1KeyDown( TObject* Sender, WORD& Key, TShiftState Shift );

private: // User declarations
  void __fastcall LimpaGrid( void );
  AnsiString GE;

public:  // User declarations
  __fastcall TDPCnsCx1( TComponent* Owner );
  void __fastcall Processamento( TObject* Sender );
  struct MVCAIXA*  Caixa;
  bool Alterar;
  char TipoAlterar;
  int CodigoAlterar;
  UINT DataInicial;
  UINT DataFinal;
  bool ProcessaSaldos;
  double SaldoAnterior;
  UINT DataSaldoAnterior;
};

//---------------------------------------------------------------------------
extern PACKAGE TDPCnsCx1*  DPCnsCx1;

//---------------------------------------------------------------------------
#endif

